

import Vue from 'vue'
import App from './App.vue'

import VueRouter from 'vue-router';
Vue.use(VueRouter);

import vueResource from 'vue-resource'
Vue.use(vueResource)

Vue.http.options.root = 'http://www.liulongbin.top:3005';

//全局过滤器
//导入mement插件
import moment from 'moment';
Vue.filter("data",function(dataStr,pattern="YYYY-MM-DD HH:mm:ss"){
  return moment(dataStr).format(pattern)
})

import 'mint-ui/lib/style.css';
import { Header,Swipe, SwipeItem, Button } from 'mint-ui';

Vue.component(Button.name, Button);
Vue.component(Header.name, Header);
Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);

// MUI样式
import '../lib/css/mui.min.css'
import '../lib/css/icons-extra.css'



import router from './router.js'
new Vue({
  el:"#app",
  render: h => h(App),
  router
})

